package com.ychen.ruijee.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ychen.ruijee.bean.Employee;
import com.ychen.ruijee.common.R;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ychen@gotop.cn
 * @date 2024-05-27 23:56
 */
public interface EmployeeService extends IService<Employee> {
    R<Employee> login(HttpServletRequest request, Employee employee);

    /** 员工新增 */
    boolean saveEmployee(HttpServletRequest request, Employee employee);

    /** 分页查询*/
    R<Page<Employee>> selectPage(Integer page, Integer pageSize, String name);

    /** 员工状态修改*/
    boolean updateStattus(HttpServletRequest request, Employee employee);
}
